// JavaScript Document
window.onload=function(){
	var oDiv=document.getElementById('div1');
	var oUl=oDiv.getElementsByTagName('ul')[0];
	var oLi=oUl.getElementsByTagName('li');
	oUl.innerHTML+=oUl.innerHTML;
	oUl.style.width=(oLi[0].offsetWidth+28)*oLi.length+"px";
	function move(){
		if(oUl.offsetLeft<-oUl.offsetWidth/2){
			oUl.style.left='0';
		}
		oUl.style.left=oUl.offsetLeft-1+"px";
	};
	scrol=setInterval(move,40);
	oDiv.onmouseover=function(){
		clearInterval(scrol);
	};
	oDiv.onmouseout=function(){
		scrol=setInterval(move,40);
	};
};
